#练习 28 布尔练习
"""给以下每一个逻辑问题写下你认为的答案，要么是 True，要么是 False。
等你把答案写下来，再在终端里运行 Python，输入每个逻辑问题，来确认你的答案是否正确。"""
True and True
True
False and True
False

1 == 1 and 2 == 1
False

"test" == "test"
True
1 == 1 or 2 != 1
False
True and 1 == 1
True
False and 0 != 0
False
True or 1 == 1
True
"test" == "testing"
False
1 != 0 and 2 == 1
False

"test" != "testing"
True

"test" == 1
False
not (True and False)

not (1 == 1 and 0 != 1)
not (10 == 1 or 1000 == 1000)
not (1 != 10 or 3 == 4)
not ("testing" == "testing" and "Zed" == "Cool Guy")
1 == 1 and (not ("testing" == 1 or 1 == 0))
"chunky" == "bacon" and (not (3 == 4 or 3 == 3))
3 == 3 and (not ("testing" == "testing" or "Python" == "Fun"))

"""Python 中有很多类似于 != 和 == 的运算符，试着尽可能多地找到这类“比较运算符”（ equality operators），比如 < 或者 <=。"""
"""<=
>=
%
+
-
*
!=
==
**"""